#include <bits/stdc++.h>
using namespace std;
int a[100005];
bool vis[100005];
int ans;
int main()
{
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    int n;
    cin>>n;
    for(int i=1;i<=n;i++)
    {
        cin>>a[i];
    }
    sort(a+1,a+n+1);
    for(int i=1;i<=n;i++)
    {
        int man=0;
        for(int s=1;s<=n;s++)
        {
            if(vis[s]==1)
            man++;
        }
        if(man==n) break;
        else
        {
            for(int j=i+1;j<=n;j++)
            {
                if(a[j]>a[i]&&vis[j]==0)
                {
                    ans++;
                    vis[j]=1;
                    break;
                }
            }

        }
    }
    cout<<n-ans<<endl;
}
